#include "shaker.h"
#include "config.h"
#include <QFont>

shaker::shaker()
{
   /* m_shaker.load(shaker_img);
    m_X = (gamew - m_shaker.width())*0.5;
    m_Y = (gameh - m_shaker.height())*0.5;

    m_Rect.setWidth(m_shaker.width());
    m_Rect.setHeight(m_shaker.height());
    m_Rect.moveTo(m_X,m_Y);*/

    //initialize score
    score = 0;
    //draw the text
    setPlainText("Score: "+ QString::number(score));
    //Score:0
    setDefaultTextColor(Qt::blue);
    setFont(QFont("times",16));

}
void shaker::setPosition (int x, int y)
{
    m_X = x;
    m_Y = y;
}

void shaker::increase()
{
    score++;
}
